import { default } from '../pages/aaa/gogogo/index.vue';
<template>
  <view class="empty_box" v-if="show">
    <!-- 空状态图片 -->
    <image src="/static/other/kongshuju.jpg"></image>
    <text>{{ title }}</text>
  </view>
</template>

<script setup lang="ts">
interface PropsType {
  show: boolean;
  title?: string;
}
const props = withDefaults(defineProps<PropsType>(), {
  show: false,
  title: "空杯状态",
});
</script>

<style lang="scss">
.empty_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  image {
    width: 100%;
  }

  text {
    margin-top: 50rpx;
    color: #ccc;
  }
}
</style>
